home *** CD-ROM | disk | FTP | other *** search
- Path: griffin.nott.ac.uk!usenet
- From: cag@cs.nott.ac.uk (Cleveland A Gibbon)
- Newsgroups: comp.lang.c++
- Subject: Re: Parsing C++ headers?
- Date: 10 Apr 1996 16:16:49 GMT
- Organization: Cripps Computing Centre, The University of Nottingham
- Message-ID: <4kgmth$n8f@griffin.ccc.nottingham.ac.uk>
- References: <96-04-033@comp.compilers>
- NNTP-Posting-Host: robin.cs.nott.ac.uk
- X-Newsreader: knews 0.9.5
- To: compilers@iecc.com
-
- In article <96-04-033@comp.compilers>,
- John Mitchell <104316.1514@CompuServe.COM> writes:
- >Hi,
- >
- >I want to parse C++ header files, and extract information about the
- >contained classes and their interface. A yacc-able grammar for this
- >type of problem ( or superset of it, as for compilation) would be a
- >great help. I'm aware of a grammar for C++ 2.0 out there - is there a
- >later version supporting templates?
- >
- >Alternatively, any suggestions on shareware/commercial parsers
- >(Windows/UNIX) that would be up to the job would be appreciated.
- >
- >thanks a lot,
- >
- >John Mitchell
- >--
- >Send compilers articles to compilers@iecc.com,
- >meta-mail to compilers-request@iecc.com.
- >
-
- John,
-
- Welcome to your worst nightmare! I have not been able to track down a
- yacc-able grammar for 2 years. The one you mentioned about is very old and
- would need a substantial amount of work to include templates. There is a
- neat C++ grammar that is written in C/C++, hence portable to any platform
- with a C/C++ compiler.
-
- An in depth discussion currently underway about its update and
- bugfixes. For your, purpose it should suffice. Check out
- 'comp.compiler.tools.pccts' and join the fun.
-
- Cleve.
-
-
-